package com.dailywork.basepro.thread.executors;

import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @author think
 * @version 1.0.0
 * @since 2020/4/25
 */
public class MyRejected implements RejectedExecutionHandler {

    public MyRejected() {
        super();
    }

    @Override
    public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
        System.out.println("RejectedExecution:" + r.toString());
    }
}
